﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Test_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;<table class="style1">
            <tr>
                <td>
        Pdf File</td>
                <td>
                    <asp:FileUpload ID="PdfFile" runat="server" />
        <asp:Button ID="btnupload" Text="Upload" runat="server" 
            onclick="btnupload_Click" />
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Format
                </td>
                <td>
        <asp:RadioButtonList ID="rblFormat" runat="server" RepeatDirection="Horizontal" 
            onselectedindexchanged="rblFormat_SelectedIndexChanged" AutoPostBack="true">
            <asp:ListItem Text="Text" Value="1"></asp:ListItem>
            <asp:ListItem Text="Image" Value="2"></asp:ListItem>
        </asp:RadioButtonList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
        <asp:TextBox ID="TxtStamptext" runat="server"></asp:TextBox>
                    <asp:FileUpload ID="FUStamp" runat="server" />
        <asp:Button ID="btnStamp" runat="server" Text="Upload" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
        <asp:GridView ID="grdview" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" 
                        onrowcommand="grdview_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="FileName">
                    <ItemTemplate>
                        <asp:Label ID="lblFileName" runat="server" Text='<%# Bind("Filename") %>'></asp:Label>
                    </ItemTemplate>                   
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="Action">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkButtonVerify" runat="server" CausesValidation="false" CommandName="grdVerify" CommandArgument='<%#Bind("id")%>' Text="Verify"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="Show">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkView" runat="server" CausesValidation="false" CommandName="grdRowView" CommandArgument='<%#Eval("Id") %>' Text="Show"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
